// 原来的写法
import { createApp } from 'vue'
import './style.css'//1
import App from './App.vue'
createApp(App).mount('#app')

// -------------------------------
// import CountCom from "./components/CountCom.vue";//demo4-1 2
// app.component("count-com",CountCom);//demo4-1 3
// const app = createApp(App)//demo4-1 4
// app.mount('#app')//demo4-1 5

//全局注册组件
// import { createApp } from 'vue'
// import './style.css'
// import App from './App.vue'
// import CountCom from "./components/CountCom.vue";
// const app=createApp(App);
// //使用component()方法注册全局组件，参数1是注册的组件名称，参数2是注册的组件对象CountCom
// app.component("count-com",CountCom);
// app.mount('#app')


//这是demo4-4(1选项式API演示示例)
// import App from './components/OptionAPI.vue';
//这是demo4-4(2组合式API演示示例)
//import App from './components/CompositionAPI.vue';